import {all} from 'redux-saga/effects';
import  helloSaga from './helloSaga';
import  loginSaga from './loginSaga';
import  root from './increment';
import  readAsync from './readAsync';
import  raceSaga from './raceSaga';
// import  race2Saga from './race2Saga';

//rootSaga  入口saga ：用来组织和调用别的saga（generator）
//监听saga：监听向仓库派发的动作的，如果监听到某些动作则会通知worker去执行
//work saga 真正干活的saga
export default function*  rootSaga() {

    yield all([
        // helloSaga(),
        // root(),
        // readAsync(),
        // raceSaga(),
        loginSaga(),
        // race2Saga(),

    ]);
}
